package com.example.headfirstprojectdemo.Decorator;

public class Whip extends Condiment {
    Beverage beverage;

    public Whip(Beverage beverage) {
        this.beverage = beverage;
    }

    @Override
    public String getDescription() {
        return beverage.getDescription() + " . Whip ";
    }

    @Override
    public double cost() {
        return beverage.cost() + 2.2;
    }
}
